<%@ Import Namespace="iPhOwa.Exchange" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CalendarContent.ascx.cs"
	Inherits="iPhOwa.Web.Controls.CalendarContent" EnableViewState="false" %>
<asp:Panel ID="np" runat="server" Visible="false" Style="text-align: center;"
	CssClass="bodyDiv">
	You have no upcoming appointments.
</asp:Panel>
<asp:DataList ID="dl" runat="server" EnableViewState="false" Width="100%" CellPadding="0"
	CellSpacing="0">
	<ItemTemplate>
		<div style="text-align: center;" class="bodyDiv">
			<b><%# ((DateTime)Eval("Key")).ToFriendlyLongDate() %></b>
		</div>
		<asp:DataList ID="al" runat="server" EnableViewState="false" Width="100%"
			DataSource='<%# Eval("Value") %>' CellPadding="0" CellSpacing="0">
			<ItemTemplate>
				<iwc:ClickablePanel runat="server" ID="appointmentDiv" Href='<%# string.Concat("ViewAppointment.aspx?path=", HttpUtility.UrlEncode(Eval("Href").ToString())) %>'
					CssClass="itemRow">
					<table cellpadding="0" cellspacing="0">
						<tr>
							<td valign="top">
								<asp:Label runat="server" ID="sl" Text='<%# Eval("DisplayStartTime") %>'
									Style="white-space: nowrap;" Font-Bold="true" />
							</td>
							<td style="width: 10px;">
							</td>
							<td>
								<%# Eval("NormalizedSubject") %>
								<asp:Panel runat="server" ID="lp" Visible='<%# !string.IsNullOrEmpty((string)Eval("Location")) %>'>
									(<%# Eval("Location") %>)
								</asp:Panel>
							</td>
						</tr>
					</table>
				</iwc:ClickablePanel>
			</ItemTemplate>
		</asp:DataList>
	</ItemTemplate>
</asp:DataList>